home *** CD-ROM | disk | FTP | other *** search
/ Download Now 8 / Download Now V8.iso / Program / InternetTools / ApacheWebServer1.3.6 / apache_1_3_6_win32.exe / _SETUP.1 / passwd.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-31  |  282 b   |  17 lines

  1. #include <stdio.h>
  2. #include "passwd.h"
  3.  
  4. /* Very tacky implementation */
  5.  
  6. struct passwd *getpwnam(const char *szUser)
  7. {
  8.     static struct passwd pw;
  9.  
  10.     if(strlen(szUser) > _MAX_PATH-10)
  11.     return NULL;
  12.  
  13.     sprintf(pw.pw_dir,"c:/users/%s",szUser);
  14.  
  15.     return &pw;
  16. }
  17.